package game.core
{
	import engine.loaders.*;
	import engine.math.*;
	import flash.utils.*;
	import game.*;
	import game.network.*;
	import game.scene.*;
	
	public class RxGameInfo
	{
		public function RxGameInfo()
		{
		}
		
		public static function Collect() : Object
		{
			var _loc_1:* = new Object();
			_loc_1.buildVersion = RxMaster.GetBuildVersion();
			_loc_1.serverURL = RxTransactionServer.instance.GetURL();
			_loc_1.serverPort = RxTransactionServer.instance.GetPort();
			_loc_1.assetPath = RxLoader.GetAssetPath();
			_loc_1.manifestPath = RxManifest.GetManifestPath();
			_loc_1.blobPath = RxManifest.GetBlobPath();
			_loc_1.mapName = RxMaster.GetMapName();
			var _loc_2:* = RxGameCamera.instance.GetPosition();
			_loc_1.cameraX = _loc_2.x.toPrecision(7);
			_loc_1.cameraY = _loc_2.y.toPrecision(7);
			_loc_1.cameraZ = _loc_2.z.toPrecision(7);
			return _loc_1;
		}
		
		public static function Write() : String
		{
			var _loc_1:* = Collect();
			var _loc_2:* = new ByteArray();
			if (_loc_1.buildVersion != 0)
			{
				_loc_2.writeUTFBytes("Build Version is " + _loc_1.buildVersion + "\n");
			}
			_loc_2.writeUTFBytes("Server is " + _loc_1.serverURL + ":" + _loc_1.serverPort + "\n");
			_loc_2.writeUTFBytes("Asset path is " + _loc_1.assetPath + "\n");
			_loc_2.writeUTFBytes("Manifest path is " + _loc_1.manifestPath + "\n");
			_loc_2.writeUTFBytes("Blob path is " + _loc_1.blobPath + "\n");
			_loc_2.writeUTFBytes("Current map is " + _loc_1.mapName + "\n");
			_loc_2.writeUTFBytes("Camera Position is " + _loc_1.cameraX + " " + _loc_1.cameraY + " " + _loc_1.cameraZ + "\n");
			_loc_2.writeUTFBytes("\n");
			return _loc_2.toString();
		}
	}
}